From: Niklas Laxström Date: Thu, 8 Sep 2011 08:22:10 +0000 (+0000) Subject: Deprecated showHeader and make it use the new methods. Only caller anymore is Metavid... X-Git-Tag: 1.31.0-rc.0~27805 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=c229411ddae9baa317aaf20f8920524ebf05da1c;p=lhc%2Fweb%2Fwiklou.git Deprecated showHeader and make it use the new methods. Only caller anymore is MetavidWiki - trying to find out what is going to be the fate of that extension. --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index edebf866c3..cb4d3cf11d 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -74,13 +74,16 @@ class LogEventsList { /** * Set page title and show header for this log type * @param $type Array + * @deprecated in 1.19 */ public function showHeader( $type ) { + wfDeprecated( __METHOD__ ); // If only one log type is used, then show a special message... $headerType = (count($type) == 1) ? $type[0] : ''; if( LogPage::isLogType( $headerType ) ) { - $this->out->setPageTitle( LogPage::logName( $headerType ) ); - $this->out->addHTML( LogPage::logHeader( $headerType ) ); + $page = new LogPage( $headerType ); + $this->out->setPageTitle( $page->getName()->text() ); + $this->out->addHTML( $page->getDescription()->parseAsBlock() ); } else { $this->out->addHTML( wfMsgExt('alllogstext',array('parseinline')) ); }